package com.lyfei.yd.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lyfei.yd.system.domain.entity.SysUser;
import com.lyfei.yd.system.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

@Service("sysUserService")
public class SysUserService extends BaseService<SysUserMapper, SysUser> {
    public SysUser getByUsername(String username) {
        QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("user_name", username);
        return this.getOne(queryWrapper);
    }

}
